package com.kevin.hash;



import java.util.HashMap;
import java.util.Map;

/**
 * @Author LXL
 * @Date 2021/4/1 9:13
 **/
public class hash {

    public static void main(String[] args) {
//        int a = 14 * 31;
//        int b = (14 << 5) - 14;
//
//        System.out.println(a);
//        System.out.println(b);
        Person p1 = new Person(10, 1.78, "lisi");
        Person p2 = new Person(10, 1.78, "lisi");
        System.out.println(p1.hashCode());
        System.out.println(p2.hashCode());
        Map<Object, String> map = new HashMap<>();
        map.put("test","aaa");
        map.put("test1","bbb");
        map.put(p1,"111");
        map.put(p2,"111");
        System.out.println(map.size());
    }
}
